from django.conf.urls import url
from . import views
from rest_framework_jwt.views import obtain_jwt_token
from rest_framework.routers import DefaultRouter

urlpatterns = [

    # url(r'^infos/$',views.AreaInfoView.as_view({"get":"list"})),
    # # url(r'infos/(?P<address_id>\d+)/$', views.AreaInfoView.as_view({"get":"retrieve"})),
    # url(r'^infos/(?P<pk>\d+)/$',views.AreaInfoView.as_view({"get":"retrieve"})),


]

router = DefaultRouter()

router.register(r'infos',views.AreaInfoView,base_name="areas")
#base_name="areas"这是什么意思？

urlpatterns += router.urls